// @ts-nocheck
import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './modules/index'


const router = createRouter({
  history: createWebHashHistory(),
  routes
})

router.beforeEach((to, from, next) => {
  document.title = (to.meta?.title ?? 'Mine') as string
  next()
})

router.afterEach((to, from) => {
  document.querySelector('.main_container').scrollTop = '0px'
})
export default router
